@section('meta')
    <style>
        body{background-color: #fff;}
        .modal-content{display: unset;}
        .layui-form-label {width: 100px;}
        .layui-input-block {margin-left: 138px;}
        .layui-input, .layui-textarea {width: 86%;}
        .layui-form-select .layui-edge {right: 16%;}
        .layui-form-select dl {min-width: 86%;}
        .new-table {margin: 20px 0;}
    </style>
@endsection
@include('Home.User.Common._meta')
<!----  新增： 所有客户  ---->
<div class="modal-content" id="addNew-content2">
    <form class="layui-form modal-client-info" action="" id="form-user" lay-filter="form-user">
        <div class="modal-func-btns">
            <a href="javascript:;" class="modal-save-btn" onclick="subForm('{{route('frame_edit',$obj->id)}}')" title="保存"><i class="icon icon-save"></i></a>
            <a href="javascript:location.replace(location.href);" class="modal-edit-btn" title="重置"><i class="icon icon-edit"></i></a>
        </div>
        @include('Home.User.Common._msg')
        <div class="layui-form-item">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-block">
                <input type="text" name="username" value="{{$obj->user->username}}" lay-verify="" placeholder="请输入用户名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">描述</label>
            <div class="layui-input-block">
                <input type="text" name="describe" value="{{$obj->user->describe}}" lay-verify="" placeholder="请输入用户描述" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">密码</label>
            <div class="layui-input-block">
                <input type="text" name="password" value="" lay-verify="" placeholder="请输入密码" autocomplete="off" class="layui-input">
            </div>
        </div>
        @if($leader)
        <div class="layui-form-item">
            <label class="layui-form-label">直属领导</label>
            <div class="layui-input-block">
                <select name="leader_id">
                    @foreach($leader as $item)
                        <option value="{{$item->id}}" @if($item->id == $obj->belong) selected @endif>{{$item->user->username}}</option>
                    @endforeach
                </select>
            </div>
        </div>
        @endif
    </form>
</div>
@include('Home.User.Common._footer')
@include('Home.User.Common._form')